<?php

class Persion {
    public $name = 'lisi';
    protected $age = 22;
    private $money = 1000;
    public function t1(){

    }
    protected function t2(){
        echo '<br>我今年:'.$this->age.'岁';
    }
    public function intro(){
        echo '<br>我叫:'.$this->name;
    }
}



class Student extends Persion {
    public function intro(){
        echo '<br>我叫:'.$this->name;
        echo '<br>我今年:'.$this->age.'岁';
    }
    
}

$student = new Student();
echo $student->name;
echo $student->intro();